home *** CD-ROM | disk | FTP | other *** search
/ Digitální fotografie a video / Digitalni-fotografie-a-video-covermount.bin / Aplikace / Servis / Titulky.dxr / 00019_Klik navrat.ls < prev    next >
Encoding:
Text File  |  1998-05-19  |  1.0 KB  |  43 lines

  1. property Tlacitko
  2.  
  3. on beginSprite me
  4.   set the visible of sprite the spriteNum of me to 1
  5.   set the visible of sprite (the spriteNum of me + 1) to 0
  6. end
  7.  
  8. on endSprite me
  9. end
  10.  
  11. on mouseEnter me
  12.   puppetSound(1, "Najezd")
  13.   set the cursor of sprite the spriteNum of me to [member "ruka_1", member "ruka_2"]
  14.   set the visible of sprite (the spriteNum of me + 1) to 1
  15.   set Tlacitko to the castNum of sprite (the spriteNum of me + 1)
  16. end
  17.  
  18. on mouseLeave me
  19.   set the visible of sprite (the spriteNum of me + 1) to 0
  20.   set the cursor of sprite the spriteNum of me to -1
  21.   if Tlacitko > 0 then
  22.     set the member of sprite (the spriteNum of me + 1) to member Tlacitko
  23.   end if
  24. end
  25.  
  26. on mouseDown me
  27.   puppetSound(1, "Klik")
  28.   if Tlacitko > 0 then
  29.     set the member of sprite (the spriteNum of me + 1) to member (Tlacitko + 1)
  30.   end if
  31. end
  32.  
  33. on mouseUp me
  34.   global Historie, Zapnuty_zvuk
  35.   if Tlacitko > 0 then
  36.     set the member of sprite (the spriteNum of me + 1) to member Tlacitko
  37.   end if
  38.   if Zapnuty_zvuk then
  39.     puppetSound(3, "Hudba")
  40.   end if
  41.   play movie Historie
  42. end
  43.